home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Computer Browser Service 1.xpl < prev    next >
Text File  |  2002-10-31  |  2KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\Server\Computer Browser Service"
  5. "NAME"="Browser Service Remote Shutdown"
  6. "VERSION"="1.11"
  7. "OSVERSION"="0101011"
  8. "WARNING"="1"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Allow Remote Shutdown of Computer Browser Service"
  11. "DESCRIPTION 1"="By default, any user can send commands to all machines in the current subnet to shutdown their Computer Browser Service (ResetBrowser request)."
  12. "DESCRIPTION 2"="If this option is deactivated, this computer will IGNORE any requests to shutdown the Computer Browser service."
  13. "DESCRIPTION 3"="This might be a good idea for a high-security site."
  14. "DESCRIPTION 4"="IMPORTANT: To enable this setting, you must either have NT 4.0 SP 6a Security Rollup Package (SRP) or Windows 2000 SP2. Windows XP (and upwards) do not need a special patch to make this setting work."
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="see http://support.microsoft.com/default.aspx?scid=kb;en-us;Q262694 "
  19. "COMMENT 2"="see http://registry.winguides.com/display.php/789/"
  20.  
  21. sV1="HKLM\SYSTEM\CurrentControlSet\Services\MrxSmb\Parameters\RefuseReset"
  22.  
  23. Sub Plugin_Initialize 
  24.     i=RegReadValue(sV1)
  25.     if i=0 or IsEmpty(i) then SetUIElement 1,true
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  If GetUIElement(1)=true then
  33.     if RegValueExists(sV1) then Call RegDeleteValue(sV1)
  34.  else
  35.     Call RegWriteValue(sV1,1,2)
  36.  end if
  37.  
  38.  
  39.  Call Restart
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.  
  46.  
  47.  
  48.